package com.smmisia.auth.service;

import com.smmisia.common.entity.auth.SysRole;
import com.smmisia.common.request.auth.RoleRequest;
import com.baomidou.mybatisplus.extension.service.IService;
import com.smmisia.common.Result.Result;

import java.util.List;


public interface SysRoleService extends IService<SysRole> {

    Result<String> addRole(RoleRequest roleRequest);

    Result<String> deleteRole(Integer id);

    Result<String> updateRole(RoleRequest roleRequest);

    Result<List<SysRole>> getRole(Integer pageNum, Integer pageSize);

    Result<SysRole> getRoleInfo(Integer id);
}
